// To parse this JSON data, do
//
//     final taskSaveModel = taskSaveModelFromJson(jsonString);

import 'dart:convert';

TaskSaveModel taskSaveModelFromJson(String str) => TaskSaveModel.fromJson(json.decode(str));

String taskSaveModelToJson(TaskSaveModel data) => json.encode(data.toJson());

class TaskSaveModel {
  TaskSaveModel({
    this.userPoint,
    this.amount,
    this.day,
    this.isSuccess,
  });

  num? userPoint;
  double? amount;
  double? day;
  bool? isSuccess;

  factory TaskSaveModel.fromJson(Map<String, dynamic> json) => TaskSaveModel(
        userPoint: json["userPoint"] ?? 0,
        amount: json["amount"] == null ? 0 : json["amount"].toDouble(),
        day: json["day"].toDouble(),
        isSuccess: json["isSuccess"],
      );

  Map<String, dynamic> toJson() => {
        "userPoint": userPoint,
        "amount": amount,
        "day": day,
        "isSuccess": isSuccess,
      };
}
